home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / SQL and Data Base / Logic Works ERwin 3.5 / data.1 / CONST30.BAS < prev    next >
Encoding:
BASIC Source File  |  1995-12-18  |  41.3 KB  |  1,243 lines

  1. Global Const vbYesNo = 4
  2. Global Const vbYesNoCancel = 3
  3. Global Const vbOKCancel = 1
  4. Global Const vbOKOnly = 0
  5.  
  6. Global Const vbOK = 1
  7. Global Const vbCancel = 2
  8. Global Const vbAbort = 3
  9. Global Const vbRetry = 4
  10. Global Const vbIgnore = 5
  11. Global Const vbYes = 6
  12. Global Const vbNo = 7
  13.  
  14. Global Const vbExclamation = 48
  15.  
  16. '
  17. ' Windows API constants
  18. '
  19.  
  20. Global Const GWL_STYLE = (-16)
  21. Global Const ES_UPPERCASE = &H8&
  22. Global Const ES_LOWERCASE = &H10&
  23.  
  24.  
  25. '
  26. ' Data Access constants
  27. '
  28.  
  29. ' Option argument values (CreateDynaset, etc)
  30. Global Const DB_DENYWRITE = &H1
  31. Global Const DB_DENYREAD = &H2
  32. Global Const DB_READONLY = &H4
  33. Global Const DB_APPENDONLY = &H8
  34. Global Const DB_INCONSISTENT = &H10
  35. Global Const DB_CONSISTENT = &H20
  36. Global Const DB_SQLPASSTHROUGH = &H40
  37.  
  38. ' SetDataAccessOption
  39. Global Const DB_OPTIONINIPATH = 1
  40.  
  41. ' Field Attributes
  42. Global Const DB_FIXEDFIELD = &H1
  43. Global Const DB_VARIABLEFIELD = &H2
  44. Global Const DB_AUTOINCRFIELD = &H10
  45. Global Const DB_UPDATABLEFIELD = &H20
  46.  
  47. ' Field Data Types
  48. Global Const DB_BOOLEAN = 1
  49. Global Const DB_BYTE = 2
  50. Global Const DB_INTEGER = 3
  51. Global Const DB_LONG = 4
  52. Global Const DB_CURRENCY = 5
  53. Global Const DB_SINGLE = 6
  54. Global Const DB_DOUBLE = 7
  55. Global Const DB_DATE = 8
  56. Global Const DB_TEXT = 10
  57. Global Const DB_LONGBINARY = 11
  58. Global Const DB_MEMO = 12
  59.  
  60. ' TableDef Attributes
  61. Global Const DB_ATTACHEXCLUSIVE = &H10000
  62. Global Const DB_ATTACHSAVEPWD = &H20000
  63. Global Const DB_SYSTEMOBJECT = &H80000002
  64. Global Const DB_ATTACHEDTABLE = &H40000000
  65. Global Const DB_ATTACHEDODBC = &H20000000
  66.  
  67. ' ListTables TableType
  68. Global Const DB_TABLE = 1
  69. Global Const DB_QUERYDEF = 5
  70.  
  71. ' ListTables Attributes (for QueryDefs)
  72. Global Const DB_QACTION = &HF0
  73. Global Const DB_QCROSSTAB = &H10
  74. Global Const DB_QDELETE = &H20
  75. Global Const DB_QUPDATE = &H30
  76. Global Const DB_QAPPEND = &H40
  77. Global Const DB_QMAKETABLE = &H50
  78.  
  79. ' ListIndexes IndexAttributes values
  80. Global Const DB_UNIQUE = 1
  81. Global Const DB_PRIMARY = 2
  82. Global Const DB_PROHIBITNULL = 4
  83. Global Const DB_IGNORENULL = 8
  84. ' ListIndexes FieldAttributes value
  85. Global Const DB_DESCENDING = 1  'For each field in Index
  86.  
  87. ' CreateDatabase and CompactDatabase Language constants
  88. Global Const DB_LANG_GENERAL = ";LANGID=0x0809;CP=1252;COUNTRY=0"
  89. Global Const DB_LANG_SPANISH = ";LANGID=0x040A;CP=1252;COUNTRY=0"
  90. Global Const DB_LANG_DUTCH = ";LANGID=0x0413;CP=1252;COUNTRY=0"
  91. Global Const DB_LANG_SWEDFIN = ";LANGID=0x040C;CP=1252;COUNTRY=0"   'VB3 and Access 1.1 Databases
  92. Global Const DB_LANG_NORWDAN = ";LANGID=0x0414;CP=1252;COUNTRY=0"   'VB3 and Access 1.1 Databases
  93. Global Const DB_LANG_ICELANDIC = ";LANGID=0x040F;CP=1252;COUNTRY=0" 'VB3 and Access 1.1 Databases
  94. Global Const DB_LANG_NORDIC = ";LANGID=0x041D;CP=1252;COUNTRY=0"    'Access 1.0 Databases only
  95.  
  96. ' CreateDatabase and CompactDatabase options
  97. Global Const DB_VERSION10 = 1        ' Microsoft Access Version 1.0
  98. Global Const DB_ENCRYPT = 2          ' Make database encrypted.
  99. Global Const DB_DECRYPT = 4          ' Decrypt database while compacting.
  100.  
  101. 'Collating order values
  102. Global Const DB_SORTGENERAL = 256    ' Sort by EFGPI rules (English, French, German,Portuguese, Italian)
  103. Global Const DB_SORTSPANISH = 258    ' Sort by Spanish rules
  104. Global Const DB_SORTDUTCH = 259      ' Sort by Dutch rules
  105. Global Const DB_SORTSWEDFIN = 260    ' Sort by Swedish, Finnish rules
  106. Global Const DB_SORTNORWDAN = 261    ' Sort by Norwegian, Danish rules
  107. Global Const DB_SORTICELANDIC = 262  ' Sort by Icelandic rules
  108. Global Const DB_SORTPDXINTL = 4096   ' Sort by Paradox international rules
  109. Global Const DB_SORTPDXSWE = 4097    ' Sort by Paradox Swedish, Finnish rules
  110. Global Const DB_SORTPDXNOR = 4098    ' Sort by Paradox Norwegian, Danish rules
  111. Global Const DB_SORTUNDEFINED = -1   ' Sort rules are undefined or unknown
  112.  
  113. ''''''''''''''''''''''''''''
  114. ' Visual Basic global constant file. This file can be loaded
  115. ' into a code module.
  116. '
  117. ' Some constants are commented out because they have
  118. ' duplicates (e.g., NONE appears several places).
  119. '
  120. ' If you are updating a Visual Basic application written with
  121. ' an older version, you should replace your global constants
  122. ' with the constants in this file.
  123. '
  124. ''''''''''''''''''''''''''''
  125.  
  126. 'Kludge Constants to make New Forms work with old CONSTANTS.BAS file
  127. Global Const dbEditNone = 0
  128. Global Const dbEditInProgress = 1
  129. Global Const dbEditAdd = 2
  130.  
  131. ' General
  132.  
  133. ' Clipboard formats
  134. Global Const CF_LINK = &HBF00
  135. Global Const CF_TEXT = 1
  136. Global Const CF_BITMAP = 2
  137. Global Const CF_METAFILE = 3
  138. Global Const CF_DIB = 8
  139. Global Const CF_PALETTE = 9
  140.  
  141. ' DragOver
  142. Global Const ENTER = 0
  143. Global Const LEAVE = 1
  144. Global Const OVER = 2
  145.  
  146. ' Drag (controls)
  147. Global Const CANCEL = 0
  148. Global Const BEGIN_DRAG = 1
  149. Global Const END_DRAG = 2
  150.  
  151. ' Show parameters
  152. Global Const MODAL = 1
  153. Global Const MODELESS = 0
  154.  
  155. ' Arrange Method
  156. ' for MDI Forms
  157. Global Const CASCADE = 0
  158. Global Const TILE_HORIZONTAL = 1
  159. Global Const TILE_VERTICAL = 2
  160. Global Const ARRANGE_ICONS = 3
  161.  
  162. 'ZOrder Method
  163. Global Const BRINGTOFRONT = 0
  164. Global Const SENDTOBACK = 1
  165.  
  166. ' Key Codes
  167. Global Const KEY_LBUTTON = &H1
  168. Global Const KEY_RBUTTON = &H2
  169. Global Const KEY_CANCEL = &H3
  170. Global Const KEY_MBUTTON = &H4    ' NOT contiguous with L & RBUTTON
  171. Global Const KEY_BACK = &H8
  172. Global Const KEY_TAB = &H9
  173. Global Const KEY_CLEAR = &HC
  174. Global Const KEY_RETURN = &HD
  175. Global Const KEY_SHIFT = &H10
  176. Global Const KEY_CONTROL = &H11
  177. Global Const KEY_MENU = &H12
  178. Global Const KEY_PAUSE = &H13
  179. Global Const KEY_CAPITAL = &H14
  180. Global Const KEY_ESCAPE = &H1B
  181. Global Const KEY_SPACE = &H20
  182. Global Const KEY_PRIOR = &H21
  183. Global Const KEY_NEXT = &H22
  184. Global Const KEY_END = &H23
  185. Global Const KEY_HOME = &H24
  186. Global Const KEY_LEFT = &H25
  187. Global Const KEY_UP = &H26
  188. Global Const KEY_RIGHT = &H27
  189. Global Const KEY_DOWN = &H28
  190. Global Const KEY_SELECT = &H29
  191. Global Const KEY_PRINT = &H2A
  192. Global Const KEY_EXECUTE = &H2B
  193. Global Const KEY_SNAPSHOT = &H2C
  194. Global Const KEY_INSERT = &H2D
  195. Global Const KEY_DELETE = &H2E
  196. Global Const KEY_HELP = &H2F
  197.  
  198. ' KEY_A thru KEY_Z are the same as their ASCII equivalents: 'A' thru 'Z'
  199. ' KEY_0 thru KEY_9 are the same as their ASCII equivalents: '0' thru '9'
  200.  
  201. Global Const KEY_NUMPAD0 = &H60
  202. Global Const KEY_NUMPAD1 = &H61
  203. Global Const KEY_NUMPAD2 = &H62
  204. Global Const KEY_NUMPAD3 = &H63
  205. Global Const KEY_NUMPAD4 = &H64
  206. Global Const KEY_NUMPAD5 = &H65
  207. Global Const KEY_NUMPAD6 = &H66
  208. Global Const KEY_NUMPAD7 = &H67
  209. Global Const KEY_NUMPAD8 = &H68
  210. Global Const KEY_NUMPAD9 = &H69
  211. Global Const KEY_MULTIPLY = &H6A
  212. Global Const KEY_ADD = &H6B
  213. Global Const KEY_SEPARATOR = &H6C
  214. Global Const KEY_SUBTRACT = &H6D
  215. Global Const KEY_DECIMAL = &H6E
  216. Global Const KEY_DIVIDE = &H6F
  217. Global Const KEY_F1 = &H70
  218. Global Const KEY_F2 = &H71
  219. Global Const KEY_F3 = &H72
  220. Global Const KEY_F4 = &H73
  221. Global Const KEY_F5 = &H74
  222. Global Const KEY_F6 = &H75
  223. Global Const KEY_F7 = &H76
  224. Global Const KEY_F8 = &H77
  225. Global Const KEY_F9 = &H78
  226. Global Const KEY_F10 = &H79
  227. Global Const KEY_F11 = &H7A
  228. Global Const KEY_F12 = &H7B
  229. Global Const KEY_F13 = &H7C
  230. Global Const KEY_F14 = &H7D
  231. Global Const KEY_F15 = &H7E
  232. Global Const KEY_F16 = &H7F
  233.  
  234. Global Const KEY_NUMLOCK = &H90
  235.  
  236. ' Variant VarType tags
  237.  
  238. Global Const V_EMPTY = 0
  239. Global Const V_NULL = 1
  240. Global Const V_INTEGER = 2
  241. Global Const V_LONG = 3
  242. Global Const V_SINGLE = 4
  243. Global Const V_DOUBLE = 5
  244. Global Const V_CURRENCY = 6
  245. Global Const V_DATE = 7
  246. Global Const V_STRING = 8
  247.  
  248.  
  249. ' Event Parameters
  250.  
  251. ' ErrNum (LinkError)
  252. Global Const WRONG_FORMAT = 1
  253. Global Const DDE_SOURCE_CLOSED = 6
  254. Global Const TOO_MANY_LINKS = 7
  255. Global Const DATA_TRANSFER_FAILED = 8
  256.  
  257. ' QueryUnload
  258. Global Const FORM_CONTROLMENU = 0
  259. Global Const FORM_CODE = 1
  260. Global Const APP_WINDOWS = 2
  261. Global Const APP_TASKMANAGER = 3
  262. Global Const FORM_MDIFORM = 4
  263.  
  264. ' Properties
  265.  
  266. ' Colors
  267. Global Const BLACK = &H0&
  268. Global Const RED = &HFF&
  269. Global Const GREEN = &HFF00&
  270. Global Const YELLOW = &HFFFF&
  271. Global Const BLUE = &HFF0000
  272. Global Const MAGENTA = &HFF00FF
  273. Global Const CYAN = &HFFFF00
  274. Global Const WHITE = &HFFFFFF
  275.  
  276. ' System Colors
  277. Global Const SCROLL_BARS = &H80000000           ' Scroll-bars gray area.
  278. Global Const DESKTOP = &H80000001               ' Desktop.
  279. Global Const ACTIVE_TITLE_BAR = &H80000002      ' Active window caption.
  280. Global Const INACTIVE_TITLE_BAR = &H80000003    ' Inactive window caption.
  281. Global Const MENU_BAR = &H80000004              ' Menu background.
  282. Global Const WINDOW_BACKGROUND = &H80000005     ' Window background.
  283. Global Const WINDOW_FRAME = &H80000006          ' Window frame.
  284. Global Const MENU_TEXT = &H80000007             ' Text in menus.
  285. Global Const WINDOW_TEXT = &H80000008           ' Text in windows.
  286. Global Const TITLE_BAR_TEXT = &H80000009        ' Text in caption, size box, scroll-bar arrow box..
  287. Global Const ACTIVE_BORDER = &H8000000A         ' Active window border.
  288. Global Const INACTIVE_BORDER = &H8000000B       ' Inactive window border.
  289. Global Const APPLICATION_WORKSPACE = &H8000000C ' Background color of multiple document interface (MDI) applications.
  290. Global Const HIGHLIGHT = &H8000000D             ' Items selected item in a control.
  291. Global Const HIGHLIGHT_TEXT = &H8000000E        ' Text of item selected in a control.
  292. Global Const BUTTON_FACE = &H8000000F           ' Face shading on command buttons.
  293. Global Const BUTTON_SHADOW = &H80000010         ' Edge shading on command buttons.
  294. Global Const GRAY_TEXT = &H80000011             ' Grayed (disabled) text.  This color is set to 0 if the current display driver does not support a solid gray color.
  295. Global Const BUTTON_TEXT = &H80000012           ' Text on push buttons.
  296.  
  297. ' Enumerated Types
  298.  
  299. ' Align (picture box)
  300. Global Const NONE = 0
  301. Global Const ALIGN_TOP = 1
  302. Global Const ALIGN_BOTTOM = 2
  303.  
  304. ' Alignment
  305. Global Const LEFT_JUSTIFY = 0  ' 0 - Left Justify
  306. Global Const RIGHT_JUSTIFY = 1 ' 1 - Right Justify
  307. Global Const CENTER = 2        ' 2 - Center
  308.  
  309. ' BorderStyle (form)
  310. 'Global Const NONE = 0          ' 0 - None
  311. Global Const FIXED_SINGLE = 1   ' 1 - Fixed Single
  312. Global Const SIZABLE = 2        ' 2 - Sizable (Forms only)
  313. Global Const FIXED_DOUBLE = 3   ' 3 - Fixed Double (Forms only)
  314.  
  315. ' BorderStyle (Shape and Line)
  316. 'Global Const TRANSPARENT = 0    '0 - Transparent
  317. 'Global Const SOLID = 1          '1 - Solid
  318. 'Global Const DASH = 2         ' 2 - Dash
  319. 'Global Const DOT = 3          ' 3 - Dot
  320. 'Global Const DASH_DOT = 4     ' 4 - Dash-Dot
  321. 'Global Const DASH_DOT_DOT = 5 ' 5 - Dash-Dot-Dot
  322. 'Global Const INSIDE_SOLID = 6 ' 6 - Inside Solid
  323.  
  324. ' MousePointer
  325. Global Const DEFAULT = 0        ' 0 - Default
  326. Global Const ARROW = 1          ' 1 - Arrow
  327. Global Const CROSSHAIR = 2      ' 2 - Cross
  328. Global Const IBEAM = 3          ' 3 - I-Beam
  329. Global Const ICON_POINTER = 4   ' 4 - Icon
  330. Global Const SIZE_POINTER = 5   ' 5 - Size
  331. Global Const SIZE_NE_SW = 6     ' 6 - Size NE SW
  332. Global Const SIZE_N_S = 7       ' 7 - Size N S
  333. Global Const SIZE_NW_SE = 8     ' 8 - Size NW SE
  334. Global Const SIZE_W_E = 9       ' 9 - Size W E
  335. Global Const UP_ARROW = 10      ' 10 - Up Arrow
  336. Global Const HOURGLASS = 11     ' 11 - Hourglass
  337. Global Const NO_DROP = 12       ' 12 - No drop
  338.  
  339. ' DragMode
  340. Global Const MANUAL = 0    ' 0 - Manual
  341. Global Const AUTOMATIC = 1 ' 1 - Automatic
  342.  
  343. ' DrawMode
  344. Global Const BLACKNESS = 1      ' 1 - Blackness
  345. Global Const NOT_MERGE_PEN = 2  ' 2 - Not Merge Pen
  346. Global Const MASK_NOT_PEN = 3   ' 3 - Mask Not Pen
  347. Global Const NOT_COPY_PEN = 4   ' 4 - Not Copy Pen
  348. Global Const MASK_PEN_NOT = 5   ' 5 - Mask Pen Not
  349. Global Const INVERT = 6         ' 6 - Invert
  350. Global Const XOR_PEN = 7        ' 7 - Xor Pen
  351. Global Const NOT_MASK_PEN = 8   ' 8 - Not Mask Pen
  352. Global Const MASK_PEN = 9       ' 9 - Mask Pen
  353. Global Const NOT_XOR_PEN = 10   ' 10 - Not Xor Pen
  354. Global Const NOP = 11           ' 11 - Nop
  355. Global Const MERGE_NOT_PEN = 12 ' 12 - Merge Not Pen
  356. Global Const COPY_PEN = 13      ' 13 - Copy Pen
  357. Global Const MERGE_PEN_NOT = 14 ' 14 - Merge Pen Not
  358. Global Const MERGE_PEN = 15     ' 15 - Merge Pen
  359. Global Const WHITENESS = 16     ' 16 - Whiteness
  360.  
  361. ' DrawStyle
  362. Global Const SOLID = 0        ' 0 - Solid
  363. Global Const DASH = 1         ' 1 - Dash
  364. Global Const DOT = 2          ' 2 - Dot
  365. Global Const DASH_DOT = 3     ' 3 - Dash-Dot
  366. Global Const DASH_DOT_DOT = 4 ' 4 - Dash-Dot-Dot
  367. Global Const INVISIBLE = 5    ' 5 - Invisible
  368. Global Const INSIDE_SOLID = 6 ' 6 - Inside Solid
  369.  
  370. ' FillStyle
  371. ' Global Const SOLID = 0           ' 0 - Solid
  372. Global Const TRANSPARENT = 1       ' 1 - Transparent
  373. Global Const HORIZONTAL_LINE = 2   ' 2 - Horizontal Line
  374. Global Const VERTICAL_LINE = 3     ' 3 - Vertical Line
  375. Global Const UPWARD_DIAGONAL = 4   ' 4 - Upward Diagonal
  376. Global Const DOWNWARD_DIAGONAL = 5 ' 5 - Downward Diagonal
  377. Global Const CROSS = 6             ' 6 - Cross
  378. Global Const DIAGONAL_CROSS = 7    ' 7 - Diagonal Cross
  379.  
  380. ' LinkMode (forms and controls)
  381. ' Global Const NONE = 0         ' 0 - None
  382. Global Const LINK_SOURCE = 1    ' 1 - Source (forms only)
  383. Global Const LINK_AUTOMATIC = 1 ' 1 - Automatic (controls only)
  384. Global Const LINK_MANUAL = 2    ' 2 - Manual (controls only)
  385. Global Const LINK_NOTIFY = 3    ' 3 - Notify (controls only)
  386.  
  387. ' LinkMode (kept for VB1.0 compatibility, use new constants instead)
  388. Global Const HOT = 1    ' 1 - Hot (controls only)
  389. Global Const SERVER = 1 ' 1 - Server (forms only)
  390. Global Const COLD = 2   ' 2 - Cold (controls only)
  391.  
  392.  
  393. ' ScaleMode
  394. Global Const USER = 0        ' 0 - User
  395. Global Const TWIPS = 1       ' 1 - Twip
  396. Global Const POINTS = 2      ' 2 - Point
  397. Global Const PIXELS = 3      ' 3 - Pixel
  398. Global Const CHARACTERS = 4  ' 4 - Character
  399. Global Const INCHES = 5      ' 5 - Inch
  400. Global Const MILLIMETERS = 6 ' 6 - Millimeter
  401. Global Const CENTIMETERS = 7 ' 7 - Centimeter
  402.  
  403. ' ScrollBar
  404. ' Global Const NONE     = 0 ' 0 - None
  405. Global Const HORIZONTAL = 1 ' 1 - Horizontal
  406. Global Const VERTICAL = 2   ' 2 - Vertical
  407. Global Const BOTH = 3       ' 3 - Both
  408.  
  409. ' Shape
  410. Global Const SHAPE_RECTANGLE = 0
  411. Global Const SHAPE_SQUARE = 1
  412. Global Const SHAPE_OVAL = 2
  413. Global Const SHAPE_CIRCLE = 3
  414. Global Const SHAPE_ROUNDED_RECTANGLE = 4
  415. Global Const SHAPE_ROUNDED_SQUARE = 5
  416.  
  417. ' WindowState
  418. Global Const NORMAL = 0    ' 0 - Normal
  419. Global Const MINIMIZED = 1 ' 1 - Minimized
  420. Global Const MAXIMIZED = 2 ' 2 - Maximized
  421.  
  422. ' Check Value
  423. Global Const UNCHECKED = 0 ' 0 - Unchecked
  424. Global Const CHECKED = 1   ' 1 - Checked
  425. Global Const GRAYED = 2    ' 2 - Grayed
  426.  
  427. ' Shift parameter masks
  428. Global Const SHIFT_MASK = 1
  429. Global Const CTRL_MASK = 2
  430. Global Const ALT_MASK = 4
  431.  
  432. ' Button parameter masks
  433. Global Const LEFT_BUTTON = 1
  434. Global Const RIGHT_BUTTON = 2
  435. Global Const MIDDLE_BUTTON = 4
  436.  
  437. ' Function Parameters
  438. ' MsgBox parameters
  439. Global Const MB_OK = 0                 ' OK button only
  440. Global Const MB_OKCANCEL = 1           ' OK and Cancel buttons
  441. Global Const MB_ABORTRETRYIGNORE = 2   ' Abort, Retry, and Ignore buttons
  442. Global Const MB_YESNOCANCEL = 3        ' Yes, No, and Cancel buttons
  443. Global Const MB_YESNO = 4              ' Yes and No buttons
  444. Global Const MB_RETRYCANCEL = 5        ' Retry and Cancel buttons
  445.  
  446. Global Const MB_ICONSTOP = 16          ' Critical message
  447. Global Const MB_ICONQUESTION = 32      ' Warning query
  448. Global Const MB_ICONEXCLAMATION = 48   ' Warning message
  449. Global Const MB_ICONINFORMATION = 64   ' Information message
  450.  
  451. Global Const MB_APPLMODAL = 0          ' Application Modal Message Box
  452. Global Const MB_DEFBUTTON1 = 0         ' First button is default
  453. Global Const MB_DEFBUTTON2 = 256       ' Second button is default
  454. Global Const MB_DEFBUTTON3 = 512       ' Third button is default
  455. Global Const MB_SYSTEMMODAL = 4096      'System Modal
  456.  
  457. ' MsgBox return values
  458. Global Const IDOK = 1                  ' OK button pressed
  459. Global Const IDCANCEL = 2              ' Cancel button pressed
  460. Global Const IDABORT = 3               ' Abort button pressed
  461. Global Const IDRETRY = 4               ' Retry button pressed
  462. Global Const IDIGNORE = 5              ' Ignore button pressed
  463. Global Const IDYES = 6                 ' Yes button pressed
  464. Global Const IDNO = 7                  ' No button pressed
  465.  
  466. ' SetAttr, Dir, GetAttr functions
  467. Global Const ATTR_NORMAL = 0
  468. Global Const ATTR_READONLY = 1
  469. Global Const ATTR_HIDDEN = 2
  470. Global Const ATTR_SYSTEM = 4
  471. Global Const ATTR_VOLUME = 8
  472. Global Const ATTR_DIRECTORY = 16
  473. Global Const ATTR_ARCHIVE = 32
  474.  
  475. 'Grid
  476. 'ColAlignment,FixedAlignment Properties
  477. Global Const GRID_ALIGNLEFT = 0
  478. Global Const GRID_ALIGNRIGHT = 1
  479. Global Const GRID_ALIGNCENTER = 2
  480.  
  481. 'Fillstyle Property
  482. Global Const GRID_SINGLE = 0
  483. Global Const GRID_REPEAT = 1
  484.  
  485.  
  486. 'Data control
  487. 'Error event Response arguments
  488. Global Const DATA_ERRCONTINUE = 0
  489. Global Const DATA_ERRDISPLAY = 1
  490.  
  491. 'Editmode property values
  492. Global Const DATA_EDITNONE = 0
  493. Global Const DATA_EDITMODE = 1
  494. Global Const DATA_EDITADD = 2
  495.  
  496. ' Options property values
  497. Global Const DATA_DENYWRITE = &H1
  498. Global Const DATA_DENYREAD = &H2
  499. Global Const DATA_READONLY = &H4
  500. Global Const DATA_APPENDONLY = &H8
  501. Global Const DATA_INCONSISTENT = &H10
  502. Global Const DATA_CONSISTENT = &H20
  503. Global Const DATA_SQLPASSTHROUGH = &H40
  504.  
  505. 'Validate event Action arguments
  506. Global Const DATA_ACTIONCANCEL = 0
  507. Global Const DATA_ACTIONMOVEFIRST = 1
  508. Global Const DATA_ACTIONMOVEPREVIOUS = 2
  509. Global Const DATA_ACTIONMOVENEXT = 3
  510. Global Const DATA_ACTIONMOVELAST = 4
  511. Global Const DATA_ACTIONADDNEW = 5
  512. Global Const DATA_ACTIONUPDATE = 6
  513. Global Const DATA_ACTIONDELETE = 7
  514. Global Const DATA_ACTIONFIND = 8
  515. Global Const DATA_ACTIONBOOKMARK = 9
  516. Global Const DATA_ACTIONCLOSE = 10
  517. Global Const DATA_ACTIONUNLOAD = 11
  518.  
  519.  
  520. 'OLE Client Control
  521. 'Actions
  522. Global Const OLE_CREATE_EMBED = 0
  523. Global Const OLE_CREATE_NEW = 0           'from ole1 control
  524. Global Const OLE_CREATE_LINK = 1
  525. Global Const OLE_CREATE_FROM_FILE = 1     'from ole1 control
  526. Global Const OLE_COPY = 4
  527. Global Const OLE_PASTE = 5
  528. Global Const OLE_UPDATE = 6
  529. Global Const OLE_ACTIVATE = 7
  530. Global Const OLE_CLOSE = 9
  531. Global Const OLE_DELETE = 10
  532. Global Const OLE_SAVE_TO_FILE = 11
  533. Global Const OLE_READ_FROM_FILE = 12
  534. Global Const OLE_INSERT_OBJ_DLG = 14
  535. Global Const OLE_PASTE_SPECIAL_DLG = 15
  536. Global Const OLE_FETCH_VERBS = 17
  537. Global Const OLE_SAVE_TO_OLE1FILE = 18
  538.  
  539. 'OLEType
  540. Global Const OLE_LINKED = 0
  541. Global Const OLE_EMBEDDED = 1
  542. Global Const OLE_NONE = 3
  543.  
  544. 'OLETypeAllowed
  545. Global Const OLE_EITHER = 2
  546.  
  547. 'UpdateOptions
  548. Global Const OLE_AUTOMATIC = 0
  549. Global Const OLE_FROZEN = 1
  550. Global Const OLE_MANUAL = 2
  551.  
  552. 'AutoActivate modes
  553. 'Note that OLE_ACTIVATE_GETFOCUS only applies to objects that
  554. 'support "inside-out" activation.  See related Verb notes below.
  555. Global Const OLE_ACTIVATE_MANUAL = 0
  556. Global Const OLE_ACTIVATE_GETFOCUS = 1
  557. Global Const OLE_ACTIVATE_DOUBLECLICK = 2
  558.  
  559. 'SizeModes
  560. Global Const OLE_SIZE_CLIP = 0
  561. Global Const OLE_SIZE_STRETCH = 1
  562. Global Const OLE_SIZE_AUTOSIZE = 2
  563.  
  564. 'DisplayTypes
  565. Global Const OLE_DISPLAY_CONTENT = 0
  566. Global Const OLE_DISPLAY_ICON = 1
  567.  
  568. 'Update Event Constants
  569. Global Const OLE_CHANGED = 0
  570. Global Const OLE_SAVED = 1
  571. Global Const OLE_CLOSED = 2
  572. Global Const OLE_RENAMED = 3
  573.  
  574. 'Special Verb Values
  575. Global Const VERB_PRIMARY = 0
  576. Global Const VERB_SHOW = -1
  577. Global Const VERB_OPEN = -2
  578. Global Const VERB_HIDE = -3
  579. Global Const VERB_INPLACEUIACTIVATE = -4
  580. Global Const VERB_INPLACEACTIVATE = -5
  581. 'The last two verbs are for objects that support "inside-out" activation,
  582. 'meaning they can be edited in-place, and that they support being left
  583. 'in-place-active even when the input focus moves to another control or form.
  584. 'These objects actually have 2 levels of being active.  "InPlace Active"
  585. 'means that the object is ready for the user to click inside it and start
  586. 'working with it.  "In-Place UI-Active" means that, in addition, if the object
  587. 'has any other UI associated with it, such as floating palette windows,
  588. 'that those windows are visible and ready for use.  Any number of objects
  589. 'can be "In-Place Active" at a time, although only one can be
  590. '"InPlace UI-Active".
  591.  
  592. 'You can cause an object to move to either one of states programmatically by
  593. 'setting the Verb property to the appropriate verb and setting
  594. 'Action=OLE_ACTIVATE.
  595.  
  596. 'Also, if you set AutoActivate = OLE_ACTIVATE_GETFOCUS, the server will
  597. 'automatically be put into "InPlace UI-Active" state when the user clicks
  598. 'on or tabs into the control.
  599.  
  600. 'VerbFlag Bit Masks
  601. Global Const VERBFLAG_GRAYED = &H1
  602. Global Const VERBFLAG_DISABLED = &H2
  603. Global Const VERBFLAG_CHECKED = &H8
  604. Global Const VERBFLAG_SEPARATOR = &H800
  605.  
  606. 'MiscFlag Bits - Or these together as desired for special behaviors
  607.  
  608. 'MEMSTORAGE causes the control to use memory to store the object while
  609. '           it is loaded.  This is faster than the default (disk-tempfile),
  610. '           but can consume a lot of memory for objects whose data takes
  611. '           up a lot of space, such as the bitmap for a paint program.
  612. Global Const OLE_MISCFLAG_MEMSTORAGE = &H1
  613.  
  614. 'DISABLEINPLACE overrides the control's default behavior of allowing
  615. '           in-place activation for objects that support it.  If you
  616. '           are having problems activating an object inplace, you can
  617. '           force it to always activate in a separate window by setting this
  618. '           bit
  619. Global Const OLE_MISCFLAG_DISABLEINPLACE = &H2
  620.  
  621. 'Common Dialog Control
  622. 'Action Property
  623. Global Const DLG_FILE_OPEN = 1
  624. Global Const DLG_FILE_SAVE = 2
  625. Global Const DLG_COLOR = 3
  626. Global Const DLG_FONT = 4
  627. Global Const DLG_PRINT = 5
  628. Global Const DLG_HELP = 6
  629.  
  630. 'File Open/Save Dialog Flags
  631. Global Const OFN_READONLY = &H1&
  632. Global Const OFN_OVERWRITEPROMPT = &H2&
  633. Global Const OFN_HIDEREADONLY = &H4&
  634. Global Const OFN_NOCHANGEDIR = &H8&
  635. Global Const OFN_SHOWHELP = &H10&
  636. Global Const OFN_NOVALIDATE = &H100&
  637. Global Const OFN_ALLOWMULTISELECT = &H200&
  638. Global Const OFN_EXTENSIONDIFFERENT = &H400&
  639. Global Const OFN_PATHMUSTEXIST = &H800&
  640. Global Const OFN_FILEMUSTEXIST = &H1000&
  641. Global Const OFN_CREATEPROMPT = &H2000&
  642. Global Const OFN_SHAREAWARE = &H4000&
  643. Global Const OFN_NOREADONLYRETURN = &H8000&
  644.  
  645. 'Color Dialog Flags
  646. Global Const CC_RGBINIT = &H1&
  647. Global Const CC_FULLOPEN = &H2&
  648. Global Const CC_PREVENTFULLOPEN = &H4&
  649. Global Const CC_SHOWHELP = &H8&
  650.  
  651. 'Fonts Dialog Flags
  652. Global Const CF_SCREENFONTS = &H1&
  653. Global Const CF_PRINTERFONTS = &H2&
  654. Global Const CF_BOTH = &H3&
  655. Global Const CF_SHOWHELP = &H4&
  656. Global Const CF_INITTOLOGFONTSTRUCT = &H40&
  657. Global Const CF_USESTYLE = &H80&
  658. Global Const CF_EFFECTS = &H100&
  659. Global Const CF_APPLY = &H200&
  660. Global Const CF_ANSIONLY = &H400&
  661. Global Const CF_NOVECTORFONTS = &H800&
  662. Global Const CF_NOSIMULATIONS = &H1000&
  663. Global Const CF_LIMITSIZE = &H2000&
  664. Global Const CF_FIXEDPITCHONLY = &H4000&
  665. Global Const CF_WYSIWYG = &H8000&         'must also have CF_SCREENFONTS & CF_PRINTERFONTS
  666. Global Const CF_FORCEFONTEXIST = &H10000
  667. Global Const CF_SCALABLEONLY = &H20000
  668. Global Const CF_TTONLY = &H40000
  669. Global Const CF_NOFACESEL = &H80000
  670. Global Const CF_NOSTYLESEL = &H100000
  671. Global Const CF_NOSIZESEL = &H200000
  672.  
  673. 'Printer Dialog Flags
  674. Global Const PD_ALLPAGES = &H0&
  675. Global Const PD_SELECTION = &H1&
  676. Global Const PD_PAGENUMS = &H2&
  677. Global Const PD_NOSELECTION = &H4&
  678. Global Const PD_NOPAGENUMS = &H8&
  679. Global Const PD_COLLATE = &H10&
  680. Global Const PD_PRINTTOFILE = &H20&
  681. Global Const PD_PRINTSETUP = &H40&
  682. Global Const PD_NOWARNING = &H80&
  683. Global Const PD_RETURNDC = &H100&
  684. Global Const PD_RETURNIC = &H200&
  685. Global Const PD_RETURNDEFAULT = &H400&
  686. Global Const PD_SHOWHELP = &H800&
  687. Global Const PD_USEDEVMODECOPIES = &H40000
  688. Global Const PD_DISABLEPRINTTOFILE = &H80000
  689. Global Const PD_HIDEPRINTTOFILE = &H100000
  690.  
  691. 'Help Constants
  692. Global Const HELP_CONTEXT = &H1           'Display topic in ulTopic
  693. Global Const HELP_QUIT = &H2              'Terminate help
  694. Global Const HELP_INDEX = &H3             'Display index
  695. Global Const HELP_CONTENTS = &H3
  696. Global Const HELP_HELPONHELP = &H4        'Display help on using help
  697. Global Const HELP_SETINDEX = &H5          'Set the current Index for multi index help
  698. Global Const HELP_SETCONTENTS = &H5
  699. Global Const HELP_CONTEXTPOPUP = &H8
  700. Global Const HELP_FORCEFILE = &H9
  701. Global Const HELP_KEY = &H101             'Display topic for keyword in offabData
  702. Global Const HELP_COMMAND = &H102
  703. Global Const HELP_PARTIALKEY = &H105      'call the search engine in winhelp
  704.  
  705. 'Error Constants
  706. Global Const CDERR_DIALOGFAILURE = -32768
  707.  
  708. Global Const CDERR_GENERALCODES = &H7FFF
  709. Global Const CDERR_STRUCTSIZE = &H7FFE
  710. Global Const CDERR_INITIALIZATION = &H7FFD
  711. Global Const CDERR_NOTEMPLATE = &H7FFC
  712. Global Const CDERR_NOHINSTANCE = &H7FFB
  713. Global Const CDERR_LOADSTRFAILURE = &H7FFA
  714. Global Const CDERR_FINDRESFAILURE = &H7FF9
  715. Global Const CDERR_LOADRESFAILURE = &H7FF8
  716. Global Const CDERR_LOCKRESFAILURE = &H7FF7
  717. Global Const CDERR_MEMALLOCFAILURE = &H7FF6
  718. Global Const CDERR_MEMLOCKFAILURE = &H7FF5
  719. Global Const CDERR_NOHOOK = &H7FF4
  720.  
  721. 'Added for CMDIALOG.VBX
  722. Global Const CDERR_CANCEL = &H7FF3
  723. Global Const CDERR_NODLL = &H7FF2
  724. Global Const CDERR_ERRPROC = &H7FF1
  725. Global Const CDERR_ALLOC = &H7FF0
  726. Global Const CDERR_HELP = &H7FEF
  727.  
  728. Global Const PDERR_PRINTERCODES = &H6FFF
  729. Global Const PDERR_SETUPFAILURE = &H6FFE
  730. Global Const PDERR_PARSEFAILURE = &H6FFD
  731. Global Const PDERR_RETDEFFAILURE = &H6FFC
  732. Global Const PDERR_LOADDRVFAILURE = &H6FFB
  733. Global Const PDERR_GETDEVMODEFAIL = &H6FFA
  734. Global Const PDERR_INITFAILURE = &H6FF9
  735. Global Const PDERR_NODEVICES = &H6FF8
  736. Global Const PDERR_NODEFAULTPRN = &H6FF7
  737. Global Const PDERR_DNDMMISMATCH = &H6FF6
  738. Global Const PDERR_CREATEICFAILURE = &H6FF5
  739. Global Const PDERR_PRINTERNOTFOUND = &H6FF4
  740.  
  741. Global Const CFERR_CHOOSEFONTCODES = &H5FFF
  742. Global Const CFERR_NOFONTS = &H5FFE
  743.  
  744. Global Const FNERR_FILENAMECODES = &H4FFF
  745. Global Const FNERR_SUBCLASSFAILURE = &H4FFE
  746. Global Const FNERR_INVALIDFILENAME = &H4FFD
  747. Global Const FNERR_BUFFERTOOSMALL = &H4FFC
  748.  
  749. Global Const FRERR_FINDREPLACECODES = &H3FFF
  750. Global Const CCERR_CHOOSECOLORCODES = &H2FFF
  751.  
  752.  
  753. '---------------------------------------------------------
  754. '      Table of Contents for Visual Basic Professional
  755. '
  756. '       1.  3-D Controls
  757. '           (Frame/Panel/Option/Check/Command/Group Push)
  758. '       2.  Animated Button
  759. '       3.  Gauge Control
  760. '       4.  Graph Control Section
  761. '       5.  Key Status Control
  762. '       6.  Spin Button
  763. '       7.  MCI Control (Multimedia)
  764. '       8.  Masked Edit Control
  765. '       9.  Comm Control
  766. '       10. Outline Control
  767. '---------------------------------------------------------
  768.  
  769.  
  770. '-------------------------------------------------------------------
  771. '3D Controls
  772. '-------------------------------------------------------------------
  773. 'Alignment (Check Box)
  774. Global Const SSCB_TEXT_RIGHT = 0         '0 - Text to the right
  775. Global Const SSCB_TEXT_LEFT = 1          '1 - Text to the left
  776.  
  777. 'Alignment (Option Button)
  778. Global Const SSOB_TEXT_RIGHT = 0         '0 - Text to the right
  779. Global Const SSOB_TEXT_LEFT = 1          '1 - Text to the left
  780.  
  781. 'Alignment (Frame)
  782. Global Const SSFR_LEFT_JUSTIFY = 0       '0 - Left justify text
  783. Global Const SSFR_RIGHT_JUSTIFY = 1      '1 - Right justify text
  784. Global Const SSFR_CENTER = 2             '2 - Center text
  785.  
  786. 'Alignment (Panel)
  787. Global Const SSPN_LEFT_TOP = 0           '0 - Text to left and top
  788. Global Const SSPN_LEFT_MIDDLE = 1        '1 - Text to left and middle
  789. Global Const SSPN_LEFT_BOTTOM = 2        '2 - Text to left and bottom
  790. Global Const SSPN_RIGHT_TOP = 3          '3 - Text to right and top
  791. Global Const SSPN_RIGHT_MIDDLE = 4       '4 - Text to right and middle
  792. Global Const SSPN_RIGHT_BOTTOM = 5       '5 - Text to right and bottom
  793. Global Const SSPN_CENTER_TOP = 6         '6 - Text to center and top
  794. Global Const SSPN_CENTER_MIDDLE = 7      '7 - Text to center and middle
  795. Global Const SSPN_CENTER_BOTTOM = 8      '8 - Text to center and bottom
  796.  
  797. 'Autosize (Command Button)
  798. Global Const SS_AUTOSIZE_NONE = 0        '0 - No Autosizing
  799. Global Const SSPB_AUTOSIZE_PICTOBUT = 1  '0 - Autosize Picture to Button
  800. Global Const SSPB_AUTOSIZE_BUTTOPIC = 2  '0 - Autosize Button to Picture
  801.  
  802. 'Autosize (Ribbon Button)
  803. 'Global Const SS_AUTOSIZE_NONE      = 0  '0 - No Autosizing
  804. Global Const SSRI_AUTOSIZE_PICTOBUT = 1  '0 - Autosize Picture to Button
  805. Global Const SSRI_AUTOSIZE_BUTTOPIC = 2  '0 - Autosize Button to Picture
  806.  
  807. 'Autosize (Panel)
  808. 'Global Const SS_AUTOSIZE_NONE    = 0    '0 - No Autosizing
  809. Global Const SSPN_AUTOSIZE_WIDTH = 1     '1 - Autosize Panel width to Caption
  810. Global Const SSPN_AUTOSIZE_HEIGHT = 2    '2 - Autosize Panel height to Caption
  811. Global Const SSPN_AUTOSIZE_CHILD = 3     '3 - Autosize Child to Panel
  812.  
  813. 'BevelInner (Panel)
  814. Global Const SS_BEVELINNER_NONE = 0      '0 - No Inner Bevel
  815. Global Const SS_BEVELINNER_INSET = 1     '1 - Inset Inner Bevel
  816. Global Const SS_BEVELINNER_RAISED = 2    '2 - Raised Inner Bevel
  817.  
  818. 'BevelOuter (Panel)
  819. Global Const SS_BEVELOUTER_NONE = 0      '0 - No Outer Bevel
  820. Global Const SS_BEVELOUTER_INSET = 1     '1 - Inset Outer Bevel
  821. Global Const SS_BEVELOUTER_RAISED = 2    '2 - Raised Outer Bevel
  822.  
  823. 'FloodType (Panel)
  824. Global Const SS_FLOODTYPE_NONE = 0       '0 - No flood
  825. Global Const SS_FLOODTYPE_L_TO_R = 1     '1 - Left to light
  826. Global Const SS_FLOODTYPE_R_TO_L = 2     '2 - Right to left
  827. Global Const SS_FLOODTYPE_T_TO_B = 3     '3 - Top to bottom
  828. Global Const SS_FLOODTYPE_B_TO_T = 4     '4 - Bottom to top
  829. Global Const SS_FLOODTYPE_CIRCLE = 5     '5 - Widening circle
  830.  
  831. 'Font3D (Panel, Command Button, Option Button, Check Box, Frame)
  832. Global Const SS_FONT3D_NONE = 0          '0 - No 3-D text
  833. Global Const SS_FONT3D_RAISED_LIGHT = 1  '1 - Raised with light shading
  834. Global Const SS_FONT3D_RAISED_HEAVY = 2  '2 - Raised with heavy shading
  835. Global Const SS_FONT3D_INSET_LIGHT = 3   '3 - Inset with light shading
  836. Global Const SS_FONT3D_INSET_HEAVY = 4   '4 - Inset with heavy shading
  837.  
  838. 'PictureDnChange (Ribbon Button)
  839. Global Const SS_PICDN_NOCHANGE = 0       '0 - Use 'Up'bitmap with no change
  840. Global Const SS_PICDN_DITHER = 1         '1 - Dither 'Up'bitmap
  841. Global Const SS_PICDN_INVERT = 2         '2 - Invert 'Up'bitmap
  842.  
  843. 'ShadowColor (Panel, Frame)
  844. Global Const SS_SHADOW_DARKGREY = 0      '0 - Dark grey shadow
  845. Global Const SS_SHADOW_BLACK = 1         '1 - Black shadow
  846.  
  847. 'ShadowStyle (Frame)
  848. Global Const SS_SHADOW_INSET = 0         '0 - Shadow inset
  849. Global Const SS_SHADOW_RAISED = 1        '1 - Shadow raised
  850.  
  851.  
  852. '---------------------------------------
  853. 'Animated Button
  854. '---------------------------------------
  855. 'Cycle property
  856. Global Const ANI_ANIMATED = 0
  857. Global Const ANI_MULTISTATE = 1
  858. Global Const ANI_TWO_STATE = 2
  859.  
  860. 'Click Filter property
  861. Global Const ANI_ANYWHERE = 0
  862. Global Const ANI_IMAGE_AND_TEXT = 1
  863. Global Const ANI_IMAGE = 2
  864. Global Const ANI_TEXT = 3
  865.  
  866. 'PicDrawMode Property
  867. Global Const ANI_XPOS_YPOS = 0
  868. Global Const ANI_AUTOSIZE = 1
  869. Global Const ANI_STRETCH = 2
  870.  
  871. 'SpecialOp Property
  872. Global Const ANI_CLICK = 1
  873.  
  874. 'TextPosition Property
  875. Global Const ANI_CENTER = 0
  876. Global Const ANI_LEFT = 1
  877. Global Const ANI_RIGHT = 2
  878. Global Const ANI_BOTTON = 3
  879. Global Const ANI_TOP = 4
  880.  
  881.  
  882. '---------------------------------------
  883. 'GAUGE
  884. '---------------------------------------
  885. 'Style Property
  886. Global Const GAUGE_HORIZ = 0
  887. Global Const GAUGE_VERT = 1
  888. Global Const GAUGE_SEMI = 2
  889. Global Const GAUGE_FULL = 3
  890.  
  891.  
  892. '----------------------------------------
  893. 'Graph Control
  894. '----------------------------------------
  895. 'General
  896. Global Const G_NONE = 0
  897. Global Const G_DEFAULT = 0
  898.  
  899. Global Const G_OFF = 0
  900. Global Const G_ON = 1
  901.  
  902. Global Const G_MONO = 0
  903. Global Const G_COLOR = 1
  904.  
  905. 'Graph Types
  906. Global Const G_PIE2D = 1
  907. Global Const G_PIE3D = 2
  908. Global Const G_BAR2D = 3
  909. Global Const G_BAR3D = 4
  910. Global Const G_GANTT = 5
  911. Global Const G_LINE = 6
  912. Global Const G_LOGLIN = 7
  913. Global Const G_AREA = 8
  914. Global Const G_SCATTER = 9
  915. Global Const G_POLAR = 10
  916. Global Const G_HLC = 11
  917.  
  918. 'Colors
  919. Global Const G_BLACK = 0
  920. Global Const G_BLUE = 1
  921. Global Const G_GREEN = 2
  922. Global Const G_CYAN = 3
  923. Global Const G_RED = 4
  924. Global Const G_MAGENTA = 5
  925. Global Const G_BROWN = 6
  926. Global Const G_LIGHT_GRAY = 7
  927. Global Const G_DARK_GRAY = 8
  928. Global Const G_LIGHT_BLUE = 9
  929. Global Const G_LIGHT_GREEN = 10
  930. Global Const G_LIGHT_CYAN = 11
  931. Global Const G_LIGHT_RED = 12
  932. Global Const G_LIGHT_MAGENTA = 13
  933. Global Const G_YELLOW = 14
  934. Global Const G_WHITE = 15
  935. Global Const G_AUTOBW = 16
  936.  
  937. 'Patterns
  938. Global Const G_SOLID = 0
  939. Global Const G_HOLLOW = 1
  940. Global Const G_HATCH1 = 2
  941. Global Const G_HATCH2 = 3
  942. Global Const G_HATCH3 = 4
  943. Global Const G_HATCH4 = 5
  944. Global Const G_HATCH5 = 6
  945. Global Const G_HATCH6 = 7
  946. Global Const G_BITMAP1 = 16
  947. Global Const G_BITMAP2 = 17
  948. Global Const G_BITMAP3 = 18
  949. Global Const G_BITMAP4 = 19
  950. Global Const G_BITMAP5 = 20
  951. Global Const G_BITMAP6 = 21
  952. Global Const G_BITMAP7 = 22
  953. Global Const G_BITMAP8 = 23
  954. Global Const G_BITMAP9 = 24
  955. Global Const G_BITMAP10 = 25
  956. Global Const G_BITMAP11 = 26
  957. Global Const G_BITMAP12 = 27
  958. Global Const G_BITMAP13 = 28
  959. Global Const G_BITMAP14 = 29
  960. Global Const G_BITMAP15 = 30
  961. Global Const G_BITMAP16 = 31
  962.  
  963. 'Symbols
  964. Global Const G_CROSS_PLUS = 0
  965. Global Const G_CROSS_TIMES = 1
  966. Global Const G_TRIANGLE_UP = 2
  967. Global Const G_SOLID_TRIANGLE_UP = 3
  968. Global Const G_TRIANGLE_DOWN = 4
  969. Global Const G_SOLID_TRIANGLE_DOWN = 5
  970. Global Const G_SQUARE = 6
  971. Global Const G_SOLID_SQUARE = 7
  972. Global Const G_DIAMOND = 8
  973. Global Const G_SOLID_DIAMOND = 9
  974.  
  975. 'Line Styles
  976. 'Global Const G_SOLID = 0
  977. Global Const G_DASH = 1
  978. Global Const G_DOT = 2
  979. Global Const G_DASHDOT = 3
  980. Global Const G_DASHDOTDOT = 4
  981.  
  982. 'Grids
  983. Global Const G_HORIZONTAL = 1
  984. Global Const G_VERTICAL = 2
  985.  
  986. 'Statistics
  987. Global Const G_MEAN = 1
  988. Global Const G_MIN_MAX = 2
  989. Global Const G_STD_DEV = 4
  990. Global Const G_BEST_FIT = 8
  991.  
  992. 'Data Arrays
  993. Global Const G_GRAPH_DATA = 1
  994. Global Const G_COLOR_DATA = 2
  995. Global Const G_EXTRA_DATA = 3
  996. Global Const G_LABEL_TEXT = 4
  997. Global Const G_LEGEND_TEXT = 5
  998. Global Const G_PATTERN_DATA = 6
  999. Global Const G_SYMBOL_DATA = 7
  1000. Global Const G_XPOS_DATA = 8
  1001. Global Const G_ALL_DATA = 9
  1002.  
  1003. 'Draw Mode
  1004. Global Const G_NO_ACTION = 0
  1005. Global Const G_CLEAR = 1
  1006. Global Const G_DRAW = 2
  1007. Global Const G_BLIT = 3
  1008. Global Const G_COPY = 4
  1009. Global Const G_PRINT = 5
  1010. Global Const G_WRITE = 6
  1011.  
  1012. 'Print Options
  1013. Global Const G_BORDER = 2
  1014.  
  1015. 'Pie Chart Options             '
  1016. Global Const G_NO_LINES = 1
  1017. Global Const G_COLORED = 2
  1018. Global Const G_PERCENTS = 4
  1019.  
  1020. 'Bar Chart Options             '
  1021. 'Global Const G_HORIZONTAL = 1
  1022. Global Const G_STACKED = 2
  1023. Global Const G_PERCENTAGE = 4
  1024. Global Const G_Z_CLUSTERED = 6
  1025.  
  1026. 'Gantt Chart Options           '
  1027. Global Const G_SPACED_BARS = 1
  1028.  
  1029. 'Line/Polar Chart Options      '
  1030. Global Const G_SYMBOLS = 1
  1031. Global Const G_STICKS = 2
  1032. Global Const G_LINES = 4
  1033.  
  1034. 'Area Chart Options            '
  1035. Global Const G_ABSOLUTE = 1
  1036. Global Const G_PERCENT = 2
  1037.  
  1038. 'HLC Chart Options             '
  1039. Global Const G_NO_CLOSE = 1
  1040. Global Const G_NO_HIGH_LOW = 2
  1041.  
  1042.  
  1043. '---------------------------------------
  1044. 'Key Status Control
  1045. '---------------------------------------
  1046. 'Style
  1047. Global Const KEYSTAT_CAPSLOCK = 0
  1048. Global Const KEYSTAT_NUMLOCK = 1
  1049. Global Const KEYSTAT_INSERT = 2
  1050. Global Const KEYSTAT_SCROLLLOCK = 3
  1051.  
  1052.  
  1053. '---------------------------------------
  1054. 'MCI Control (Multimedia)
  1055. '---------------------------------------
  1056. 'NOTE:
  1057. 'Please use the updated Multimedia constants
  1058. 'in the WINMMSYS.TXT file from the \VB\WINAPI
  1059. 'subdirectory.
  1060.  
  1061. 'Mode Property
  1062. 'Global Const MCI_MODE_NOT_OPEN = 11
  1063. 'Global Const MCI_MODE_STOP = 12
  1064. 'Global Const MCI_MODE_PLAY = 13
  1065. 'Global Const MCI_MODE_RECORD = 14
  1066. 'Global Const MCI_MODE_SEEK = 15
  1067. 'Global Const MCI_MODE_PAUSE = 16
  1068. 'Global Const MCI_MODE_READY = 17
  1069.  
  1070. 'NotifyValue Property
  1071. 'Global Const MCI_NOTIFY_SUCCESSFUL = 1
  1072. 'Global Const MCI_NOTIFY_SUPERSEDED = 2
  1073. 'Global Const MCI_ABORTED = 4
  1074. 'Global Const MCI_FAILURE = 8
  1075.  
  1076. 'Orientation Property
  1077. 'Global Const MCI_ORIENT_HORZ = 0
  1078. 'Global Const MCI_ORIENT_VERT = 1
  1079.  
  1080. 'RecordMode Porperty
  1081. 'Global Const MCI_RECORD_INSERT = 0
  1082. 'Global Const MCI_RECORD_OVERWRITE = 1
  1083.  
  1084. 'TimeFormat Property
  1085. 'Global Const MCI_FORMAT_MILLISECONDS = 0
  1086. 'Global Const MCI_FORMAT_HMS = 1
  1087. 'Global Const MCI_FORMAT_MSF = 2
  1088. 'Global Const MCI_FORMAT_FRAMES = 3
  1089. 'Global Const MCI_FORMAT_SMPTE_24 = 4
  1090. 'Global Const MCI_FORMAT_SMPTE_25 = 5
  1091. 'Global Const MCI_FORMAT_SMPTE_30 = 6
  1092. 'Global Const MCI_FORMAT_SMPTE_30DROP = 7
  1093. 'Global Const MCI_FORMAT_BYTES = 8
  1094. 'Global Const MCI_FORMAT_SAMPLES = 9
  1095. 'Global Const MCI_FORMAT_TMSF = 10
  1096.  
  1097.  
  1098. '---------------------------------------
  1099. 'Spin Button
  1100. '---------------------------------------
  1101. 'SpinOrientation
  1102. Global Const SPIN_VERTICAL = 0
  1103. Global Const SPIN_HORIZONTAL = 1
  1104.  
  1105.  
  1106. '---------------------------------------
  1107. 'Masked Edit Control
  1108. '---------------------------------------
  1109. 'ClipMode
  1110. Global Const ME_INCLIT = 0
  1111. Global Const ME_EXCLIT = 1
  1112.  
  1113.  
  1114. '---------------------------------------
  1115. 'Comm Control
  1116. '---------------------------------------
  1117. 'Handshaking
  1118. Global Const MSCOMM_HANDSHAKE_NONE = 0
  1119. Global Const MSCOMM_HANDSHAKE_XONXOFF = 1
  1120. Global Const MSCOMM_HANDSHAKE_RTS = 2
  1121. Global Const MSCOMM_HANDSHAKE_RTSXONXOFF = 3
  1122.  
  1123. 'Event constants
  1124. Global Const MSCOMM_EV_SEND = 1
  1125. Global Const MSCOMM_EV_RECEIVE = 2
  1126. Global Const MSCOMM_EV_CTS = 3
  1127. Global Const MSCOMM_EV_DSR = 4
  1128. Global Const MSCOMM_EV_CD = 5
  1129. Global Const MSCOMM_EV_RING = 6
  1130. Global Const MSCOMM_EV_EOF = 7
  1131.  
  1132. 'Error code constants
  1133. Global Const MSCOMM_ER_BREAK = 1001
  1134. Global Const MSCOMM_ER_CTSTO = 1002
  1135. Global Const MSCOMM_ER_DSRTO = 1003
  1136. Global Const MSCOMM_ER_FRAME = 1004
  1137. Global Const MSCOMM_ER_OVERRUN = 1006
  1138. Global Const MSCOMM_ER_CDTO = 1007
  1139. Global Const MSCOMM_ER_RXOVER = 1008
  1140. Global Const MSCOMM_ER_RXPARITY = 1009
  1141. Global Const MSCOMM_ER_TXFULL = 1010
  1142.  
  1143.  
  1144. '---------------------------------------
  1145. ' MAPI SESSION CONTROL CONSTANTS
  1146. '---------------------------------------
  1147. 'Action
  1148. Global Const SESSION_SIGNON = 1
  1149. Global Const SESSION_SIGNOFF = 2
  1150.  
  1151.  
  1152. '---------------------------------------
  1153. ' MAPI MESSAGE CONTROL CONSTANTS
  1154. '---------------------------------------
  1155. 'Action
  1156. Global Const MESSAGE_FETCH = 1             ' Load all messages from message store
  1157. Global Const MESSAGE_SENDDLG = 2           ' Send mail bring up default mapi dialog
  1158. Global Const MESSAGE_SEND = 3              ' Send mail without default mapi dialog
  1159. Global Const MESSAGE_SAVEMSG = 4           ' Save message in the compose buffer
  1160. Global Const MESSAGE_COPY = 5              ' Copy current message to compose buffer
  1161. Global Const MESSAGE_COMPOSE = 6           ' Initialize compose buffer (previous
  1162.                ' data is lost
  1163. Global Const MESSAGE_REPLY = 7             ' Fill Compose buffer as REPLY
  1164. Global Const MESSAGE_REPLYALL = 8          ' Fill Compose buffer as REPLY ALL
  1165. Global Const MESSAGE_FORWARD = 9           ' Fill Compose buffer as FORWARD
  1166. Global Const MESSAGE_DELETE = 10           ' Delete current message
  1167. Global Const MESSAGE_SHOWADBOOK = 11       ' Show Address book
  1168. Global Const MESSAGE_SHOWDETAILS = 12      ' Show details of the current recipient
  1169. Global Const MESSAGE_RESOLVENAME = 13      ' Resolve the display name of the recipient
  1170. Global Const RECIPIENT_DELETE = 14            ' Fill Compose buffer as FORWARD
  1171. Global Const ATTACHMENT_DELETE = 15          ' Delete current message
  1172.  
  1173.  
  1174. '---------------------------------------
  1175. '  ERROR CONSTANT DECLARATIONS (MAPI CONTROLS)
  1176. '---------------------------------------
  1177. Global Const SUCCESS_SUCCESS = 32000
  1178. Global Const MAPI_USER_ABORT = 32001
  1179. Global Const MAPI_E_FAILURE = 32002
  1180. Global Const MAPI_E_LOGIN_FAILURE = 32003
  1181. Global Const MAPI_E_DISK_FULL = 32004
  1182. Global Const MAPI_E_INSUFFICIENT_MEMORY = 32005
  1183. Global Const MAPI_E_ACCESS_DENIED = 32006
  1184. Global Const MAPI_E_TOO_MANY_SESSIONS = 32008
  1185. Global Const MAPI_E_TOO_MANY_FILES = 32009
  1186. Global Const MAPI_E_TOO_MANY_RECIPIENTS = 32010
  1187. Global Const MAPI_E_ATTACHMENT_NOT_FOUND = 32011
  1188. Global Const MAPI_E_ATTACHMENT_OPEN_FAILURE = 32012
  1189. Global Const MAPI_E_ATTACHMENT_WRITE_FAILURE = 32013
  1190. Global Const MAPI_E_UNKNOWN_RECIPIENT = 32014
  1191. Global Const MAPI_E_BAD_RECIPTYPE = 32015
  1192. Global Const MAPI_E_NO_MESSAGES = 32016
  1193. Global Const MAPI_E_INVALID_MESSAGE = 32017
  1194. Global Const MAPI_E_TEXT_TOO_LARGE = 32018
  1195. Global Const MAPI_E_INVALID_SESSION = 32019
  1196. Global Const MAPI_E_TYPE_NOT_SUPPORTED = 32020
  1197. Global Const MAPI_E_AMBIGUOUS_RECIPIENT = 32021
  1198. Global Const MAPI_E_MESSAGE_IN_USE = 32022
  1199. Global Const MAPI_E_NETWORK_FAILURE = 32023
  1200. Global Const MAPI_E_INVALID_EDITFIELDS = 32024
  1201. Global Const MAPI_E_INVALID_RECIPS = 32025
  1202. Global Const MAPI_E_NOT_SUPPORTED = 32026
  1203.  
  1204. Global Const CONTROL_E_SESSION_EXISTS = 32050
  1205. Global Const CONTROL_E_INVALID_BUFFER = 32051
  1206. Global Const CONTROL_E_INVALID_READ_BUFFER_ACTION = 32052
  1207. Global Const CONTROL_E_NO_SESSION = 32053
  1208. Global Const CONTROL_E_INVALID_RECIPIENT = 32054
  1209. Global Const CONTROL_E_INVALID_COMPOSE_BUFFER_ACTION = 32055
  1210. Global Const CONTROL_E_FAILURE = 32056
  1211. Global Const CONTROL_E_NO_RECIPIENTS = 32057
  1212. Global Const CONTROL_E_NO_ATTACHMENTS = 32058
  1213.  
  1214.  
  1215. '---------------------------------------
  1216. '  MISCELLANEOUS GLOBAL CONSTANT DECLARATIONS (MAPI CONTROLS)
  1217. '---------------------------------------
  1218. Global Const RECIPTYPE_ORIG = 0
  1219. Global Const RECIPTYPE_TO = 1
  1220. Global Const RECIPTYPE_CC = 2
  1221. Global Const RECIPTYPE_BCC = 3
  1222.  
  1223. Global Const ATTACHTYPE_DATA = 0
  1224. Global Const ATTACHTYPE_EOLE = 1
  1225. Global Const ATTACHTYPE_SOLE = 2
  1226.  
  1227.  
  1228. '-------------------------------------------------
  1229. '  Outline
  1230. '-------------------------------------------------
  1231. ' PictureType
  1232. Global Const MSOUTLINE_PICTURE_CLOSED = 0
  1233. Global Const MSOUTLINE_PICTURE_OPEN = 1
  1234. Global Const MSOUTLINE_PICTURE_LEAF = 2
  1235.  
  1236. 'Outline Control Error Constants
  1237. Global Const MSOUTLINE_BADPICFORMAT = 32000
  1238. Global Const MSOUTLINE_BADINDENTATION = 32001
  1239. Global Const MSOUTLINE_MEM = 32002
  1240. Global Const MSOUTLINE_PARENTNOTEXPANDED = 32003
  1241.  
  1242.  
  1243.